Zepto(function() {
  let touch = "";
  "ontouchstart" in window ? (touch = "touchstart") : (touch = "click");

  $(".box1").on(touch, function() {
    console.log(1);
    console.log(touch);
  });
});
